home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2781 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.connectnet.com!usenet
  2. From: Cynthia <provstu@cts.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Game Programming 21 days: problems compiling code
  5. Date: Tue, 23 Jan 1996 15:42:14 -0800
  6. Organization: Providence Seminars
  7. Message-ID: <31057256.2EE0@cts.com>
  8. References: <4dn7sh$590@ixnews6.ix.netcom.com> <4dpanu$1fc@vodka.intele.net>
  9. NNTP-Posting-Host: max-nc-19.connectnet.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b4a (Win16; I)
  14.  
  15. Jason V. Morgan wrote:
  16. > In article <4dn7sh$590@ixnews6.ix.netcom.com>, psilocyn@ix.netcom.co says...
  17. > >
  18. > >I got the book Teach Yourself Game Programming in 21 Days recently, and
  19. > >the source code was written with a microsoft compiler.  My question then
  20. > >is,  how can I change the MS code to work with Borland code (if possible)?
  21. > >
  22. > I was able to convert that exact same code for Borland C++ 3.1 and compile
  23. > and run everything.  One problem you may have is that the author used
  24. > _dos_alloc (or something like that) to get memory for the sound blaster
  25. > interface.  Borland can't have dos allocate its memory with its heap based
  26. > memory manager in use.  You should change the calls to malloc, you can still
  27. > force it to a segment boundry.Well,to fix this,you need to replace _dos_allloc with malloc()/
  28. Also,inlcude the files,Stdlib,stdio,and malloc.h.
  29.